'use strict'

//1.导包
const express = require('express')
const path = require('path')

//2.create app
const app = express()

//3.请求、处理、响应
const accountRouter = require(path.join(__dirname,'routers/accountRouter.js'))
app.use('/account',accountRouter)

//4.开启
app.listen(3000,'127.0.0.1',err=>{
  if (err) {
    console.log(err)
  }
  console.log("start OK")
})

